package com.imooc.service;

import com.imooc.pojo.Admin;
import com.imooc.pojo.bo.CreateAdminBO;
import com.imooc.pojo.vo.UpdateAdminBO;
import com.imooc.utils.PagedGridResult;

/**
 * @version 1.0
 * @Author Mr.Yang
 * @Date 2024-08-14 18:46
 * @question:
 */

public interface AdminService {

    /**
     * 创建admin账号
     * @param createAdminBO
     */
    public void createAdmin(CreateAdminBO createAdminBO);

    /**
     * 查询admin列表
     * @param accountName
     * @param page
     * @param limit
     * @return
     */
    public PagedGridResult getAdminList(String accountName,
                                        Integer page,
                                        Integer limit);

    /**
     * 删除admin账号
     * @param username
     */
    public void deleteAdmin(String username);

    /**
     * 查询admin信息
     * @param adminId
     * @return
     */
    public Admin getById(String adminId);

    /**
     * 更新admin信息
     * @param adminBO
     */
    public void updateAdmin(UpdateAdminBO adminBO);

}
